package csel.model;

public class DamageItem extends Item{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int damage;
	public DamageItem(int damage)
	{
		setTypeId("bomb");
		this.damage = damage;
	}
	public boolean touch(Entity e)
	{
		e.setLifeLeft(e.getLifeLeft() + damage);
		if(location!=null)
		{
			location.setItem(null);
		}
		return (true);
	}
}
